package com.doctcloud.hisinfo.medrec.controller;

import com.doctcloud.hisinfo.histable.domain.medrec.TransferDo;
import com.doctcloud.hisinfo.medrec.service.impl.TransferService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(value = "/medrec/")
public class TransferController {
    @Autowired
    private TransferService transferService;
    @GetMapping("/transfer/listbypat")
    public List<TransferDo> listByPat(@RequestParam("patientId")String patientId,
                                      @RequestParam("visitId")Integer visitId){
        return transferService.listByPat(patientId,visitId);
    }
}
